package com.book.repo;

import com.book.pojo.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author oyz
 * @version 1.0.4
 * @description: 持久层
 * @date 2023/10/23 21:57
 */
@Repository
public interface UserRepository extends JpaRepository<UserInfo,Long> {


    UserInfo findByUserName(String userName);

    UserInfo findByUserNameAndUserPassword(String account, String password);
}
